<script>

var name = 10            
function fn(){
    var name = 1
    outF = function (){
        name++
        console.log('out',name)
    }
    function test(){
        return name
    }
    return test
}
let a = fn()()
outF()
let b = fn()()

console.log('a',a)
console.log('b',b)

</script>